package com.zjs.jsp.status.service;


import com.zjs.jsp.domain.stats.RootData;
import com.zjs.jsp.domain.stats.StatusRoot;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("SS-ERP-ENGINE-REST")
//@FeignClient(name="SS-ERP-ENGINE-REST",url="http://10.10.129.151:6710/")
public interface IBaseEngineData
{

    @RequestMapping(value = "/engine/getOrderStatus", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_VALUE)
    StatusRoot getOrderStatus(@RequestParam("orderCode") String orderCode, @RequestParam("orderStatus") String orderStatus);

    @RequestMapping(value = "/engine/getHisOrderStatus", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_VALUE)
    StatusRoot getHisOrderStatus(@RequestParam("orderCode") String orderCode, @RequestParam("orderStatus") String orderStatus);

    @RequestMapping(value = "/engine/getHisOrdersByTaskCode", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_VALUE)
    RootData getHisOrdersByTaskCode(@RequestParam("taskCode") String taskCode);

    @RequestMapping(value = "/engine/getOrdersByTaskCode", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_VALUE)
    RootData getOrdersByTaskCode(@RequestParam("taskCode") String taskCode);


}
